import request from '@/config/axios'

//商品评论
export const getProductCommentApi = (params: any): Promise<IResponse> => {
  return request.post({ url: '/api/SyOperationController/selCommodityComment', params })
}
//课程评论
export const getCourseCommentApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selComment', params })
}
//微圈评论
export const getMicrocircleCommentApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selEssayComment', params })
}
//个人评论
export const getICommentApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/getCourseBeforeAjax', params })
}

//商品管理人员
export const getProductManagementtApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selCommodityBackComment', params })
}
//课程管理人员
export const getmanagementtApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selBackComment', params })
}
//微圈管理人员
export const getMicrocircleManagementtApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selEssayBackComment', params })
}
//个人管理人员
export const getIManagementtApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/getCourseBackAjax', params })
}
//课程评论查看
export const getCourseChaKanApi = (courseId: string): Promise<IResponse> => {
  return request.get({ url: '/api/SyOperationController/selBeforeCourse', params: { courseId } })
}

//课程评论删除
export const getDelCourseApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/updComment', params })
}
//微圈评论查看
export const getMicroircleChaKanApi = (microcircleId: string): Promise<IResponse> => {
  return request.get({ url: '/api/SyOperationController/selEassyInfo', params: { microcircleId } })
}

//文章
export const getEssayApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/selPerBeforeEasComment', params })
}
//商品
export const getCommodityApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/getCommodityBeforeAjax', params })
}

//评论状态修改
export const getUpdCommentApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/updComment', params })
}

//清理
export const getClearCommentApi = (params: any): Promise<IResponse> => {
  return request.post({url: '/api/SyOperationController/clearComment', params })
}